package edu.zut.cs.software.sms.commodity.web.spring.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.module.commodity.domain.Commodity;
import edu.zut.cs.software.module.commodity.service.CommodityManager;
import edu.zut.cs.software.teach.Base.web.spring.controller.GenericController;

/**
 * 
 * 
 * @author gaoliucheng
 */
@Controller

@RequestMapping("/commodity")
public class CommodityController extends GenericController<Commodity, Long, CommodityManager> {

	CommodityManager commodityManager;

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		return  "commodity/index";
		
	}

	
	@Autowired
	public void setAdminManager(CommodityManager commodityManager) {
		this.commodityManager = commodityManager;
		this.manager = this.commodityManager;
	}
}